/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package metier;

import java.util.Comparator;

/**
 *
 * @author epulapp
 */
public class PersonneComparator implements Comparator  {

    @Override
    public int compare(Object o1, Object o2) {
        Personne p1 = (Personne) o1;
        Personne p2 = (Personne) o2;
        return p1.getNom().compareTo(p2.getNom());
    }
    
    
}
